package org.idea.qiyu.framework.gateway.core.utils;

import org.idea.qiyu.framework.gateway.starter.registry.URL;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author linhao
 * @Date created in 9:58 上午 2022/4/16
 */
public class GatewayLocalCache {

    public static Map<String, List<URL>> gatewayLocalCache = new ConcurrentHashMap<>();

    public static void put(String applicationName, List<URL> url) {
        gatewayLocalCache.put(applicationName,url);
    }

    public static List<URL> get(String applicationName){
        return gatewayLocalCache.get(applicationName);
    }
}
